//
//  HomeTabBarController.m
//  lbs_chat
//
//  Created by lidi on 15/7/14.
//  Copyright (c) 2015年 colin. All rights reserved.
//

#import "HomeTabBarController.h"
#import "UsersViewController.h"
#import "RespositoriesViewController.h"
#import "MoreTableViewController.h"

@interface HomeTabBarController ()

@end

@implementation HomeTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    UIStoryboard *mapStoryBoard = [UIStoryboard storyboardWithName:@"Users" bundle:[NSBundle mainBundle]];
    
    UINavigationController *mapNavigationViewController = [mapStoryBoard instantiateInitialViewController];
    mapNavigationViewController.tabBarItem.title = @"Users";
    
    UIStoryboard *chatStoryBoard = [UIStoryboard storyboardWithName:@"Respositories" bundle:[NSBundle mainBundle]];
    UINavigationController *chatNavigationViewController = [chatStoryBoard instantiateInitialViewController];
    chatNavigationViewController.tabBarItem.title = @"Respositories";
    
    UIStoryboard *friendsStoryBoard = [UIStoryboard storyboardWithName:@"More" bundle:[NSBundle mainBundle]];
    UINavigationController *friendsNavigationViewController = [friendsStoryBoard instantiateInitialViewController];
    friendsNavigationViewController.tabBarItem.title = @"More";
    
    self.viewControllers = @[mapNavigationViewController,chatNavigationViewController,friendsNavigationViewController];
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
